package com.pheruagor.handmanager.controller {
    import com.pheruagor.handmanager.model.ApplicationProxy;
    import com.pheruagor.handmanager.view.ApplicationMediator;

    import mx.core.WindowedApplication;

    import org.puremvc.as3.interfaces.*;
    import org.puremvc.as3.patterns.command.*;
    import org.puremvc.as3.patterns.observer.*;

    /**
     * Create and register <code>Proxy</code>s with the <code>Model</code>.
     * @author Pheruagor
     */
    public class StartupCommand extends SimpleCommand {
        override public function execute(note:INotification):void {
            var app:WindowedApplication = WindowedApplication(note.getBody());

            facade.registerProxy(new ApplicationProxy());
            facade.registerMediator(new ApplicationMediator(app));
        }
    }
}